﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace FridgeManagerApp
{
    public class LCity : WCity
    {
        private bool isChoose;
        public bool IsChoose
        {
            get
            {
                return isChoose;
            }
            set
            {
                isChoose = value;
                RaisePropertyChanged("IsChoose");
            }
        }

        private String provinceName;
        public String ProvinceName
        {
            get
            {
                return provinceName;
            }
            set
            {
                provinceName = value;
                RaisePropertyChanged("ProvinceName");
            }
        }

        private String provinceSelected;
        public String ProvinceSelected
        {
            get
            {
                return provinceSelected;
            }

            set
            {
                provinceSelected = value;
                RaisePropertyChanged("ProvinceSelected");
            }
        }

        private ObservableCollection<String> provinces = new ObservableCollection<String>();
        public ObservableCollection<String> Provinces
        {
            get
            {
                return provinces;
            }

            set
            {
                provinces = value;
                RaisePropertyChanged("Provinces");
            }
        }

        public LCity()
        {
            IsChoose = false;
            CityUID = -1;
            CityName = "";
            PersonnelUID = -1;
            ProvinceUID = -1;
            ProvinceSelected = ProvinceName;
            Person = new WPersonnel();
        }
    }
}
